#include <stdio.h>
int main()
{
    int n = 3;
    while(n<=100)
    {
        if(n%3==0)
        printf("%d ",n);
        n+=2;
    }
    return 0;
}